import request from '@/utils/request'

// 查询员工工作日志信息列表
export function listDaywork(query) {
  return request({
    url: '/manage/daywork/list',
    method: 'get',
    params: query
  })
}

// 查询员工工作日志信息详细
export function getDaywork(dayworkId) {
  return request({
    url: '/manage/daywork/' + dayworkId,
    method: 'get'
  })
}

// 新增员工工作日志信息
export function addDaywork(data) {
  return request({
    url: '/manage/daywork',
    method: 'post',
    data: data
  })
}

// 修改员工工作日志信息
export function updateDaywork(data) {
  return request({
    url: '/manage/daywork',
    method: 'put',
    data: data
  })
}

// 删除员工工作日志信息
export function delDaywork(dayworkId) {
  return request({
    url: '/manage/daywork/' + dayworkId,
    method: 'delete'
  })
}
